<?php
	$v_params = $this->getParams();
	$listaGeralOS = $v_params[0];
?>
<div align="center">
    <table class="lista" style="width:98%;">
    	<thead>
          <tr>
              <th colspan="3">Últimas OS</th>
          </tr>
         </thead>
         <tbody>
          <?php foreach($listaGeralOS as $ls){ if($ls["no_os"]){ ?>
          <tr>
              <td>
                  <?php echo $ls["no_os"] ?>
              </td>
              <td>
                  <?php echo $ls["dt_inicio_os"] ?>
              </td> 
              <td>
                  <a href="OS/listar#mostrarOS-<?php echo $ls["id_os"] ?>" 
                  class="btn_laranja" >Abrir</a>
              </td>
          </tr>
          <?php }else { echo '<td colspan="7">Nenhuma OS cadastrada na aplicação</td>'; } } ?>
          </tbody>
      </table>
</div>               